from django.conf.urls.defaults import *
from mysite.log import views

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('mysite.view',
    (r'^$', 'root_directory'),
    (r'^query/$', 'query'),
    (r'^log/$', 'log'),
    (r'^log_content/(?P<a>\d+)/$', 'log_content'),
    (r'^delete_comment/(?P<b>\d+)/$', 'del_comment'),
    (r'^editor/(?P<editor_id>\d+)/$', 'editor'),
    (r'^delete/(?P<a>\d+)/$', 'delete'),
    (r'^add/$', 'add'),
    (r'^classification/(?P<class_id>\d+)/$', 'classification'),
    (r'^reply/(?P<q>\d+)/$', 'reply'),
    (r'^accounts/login/$', 'login'),
    (r'^accounts/logout/$', 'logout'),
    (r'^about-me/$', 'upload_pictures'),
    (r'delete_images/$', 'delete_images'),
    (r'change-image/$', 'change_image'),
    #(r'^html/(?P<path>.*)$', 'django.views.static.serve'.{'document_root': settings.STATIC-PATH}),
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)

from django.conf import settings
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_PATH}),
    )